package controller

import (
	"github.com/crack007/go-im/src/module/api/dto"
	"github.com/crack007/go-im/src/module/api/service"
	"github.com/gin-gonic/gin"
)

type ContactController struct {
}

func (c *ContactController) List(ctx *gin.Context) interface{} {
	queryDto := dto.NewQueryDto()
	ctx.ShouldBindQuery(queryDto)
	return service.ContactService.List(GetRequestUser(ctx), queryDto)
}
